<template>
<div class="goods">
  <goods-list-item v-for="item in goods.list" :key="item.index" :goodsItem="item"></goods-list-item>
  <button @click="gethhh">点我测试</button>
</div>
</template>

<script>
import GoodsListItem from './GoodsListItem'

export default {
  name: 'GoodsList',
  props: {
    goods: {
      type: Object,
      default () {
        return {}
      },
    },
  },
  components: {
    GoodsListItem,
  },
  methods: {
    gethhh() {
      console.log(this.goods)
    },
  },
}
</script>

<style scoped>
.goods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;

  padding: 2px;
}
</style>
